<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Transformers\ClassifyTransformer;
use App\Model\Classify;
use Illuminate\Http\Request;
//use App\Http\Controllers\Controller;

class ClassifyController extends Controller
{
    public function classify(){
        $classify=Classify::where('pid',0)->paginate(5);
        return $this->response->paginator($classify,new ClassifyTransformer());

    }
}
